import React from 'react';
import { observer } from 'mobx-react';
import { WeaInput } from 'ecCom';

interface Props {
    value?: string;
    valueSpan?: string;
    viewAttr:string;
    onBlur: (string) => void;
}

export default observer((props: Props) => {
    const { onBlur,viewAttr} = props;


    return (
        <div style={{float:'left'}}>
            <WeaInput
                viewAttr={viewAttr}
                value={props.value || ""}
                onBlur={onBlur} />
        </div>
    )
});
